package models;

import java.io.Serializable;
import javax.persistence.*;

import java.util.Date;


/**
 * The persistent class for the veri_code database table.
 * 
 */
@Entity
@Table(name="VERI_CODE")
public class VeriCode implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@TableGenerator(
            name = "VERI_CODE_SEQ",
            table = "SEQUENCE",
            pkColumnName = "NAME",
            pkColumnValue = "VERI_CODE_SEQ",
            valueColumnName = "CNT",
            initialValue = 10000,
            allocationSize = 1)
    @GeneratedValue(strategy = GenerationType.TABLE, generator = "VERI_CODE_SEQ")
	@Column(unique=true, nullable=false)
	private int id;

	private int aid;

	@Column(length=20)
	private String code;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="CREATE_D")
	private Date createD;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="EXPIRATION_D")
	private Date expirationD;

	private int status;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="STATUS_D")
	private Date statusD;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="UPDATE_D")
	private Date updateD;

	public VeriCode() {
	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getAid() {
		return this.aid;
	}

	public void setAid(int aid) {
		this.aid = aid;
	}

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Date getCreateD() {
		return this.createD;
	}

	public void setCreateD(Date createD) {
		this.createD = createD;
	}

	public Date getExpirationD() {
		return this.expirationD;
	}

	public void setExpirationD(Date expirationD) {
		this.expirationD = expirationD;
	}

	public int getStatus() {
		return this.status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Date getStatusD() {
		return this.statusD;
	}

	public void setStatusD(Date statusD) {
		this.statusD = statusD;
	}

	public Date getUpdateD() {
		return this.updateD;
	}

	public void setUpdateD(Date updateD) {
		this.updateD = updateD;
	}

}